package com.woniuxy.woniuticket.movieinfomodule.service.impl;

import com.woniuxy.woniuticket.movieinfomodule.dao.CinemaInfoDAO;
import com.woniuxy.woniuticket.movieinfomodule.service.CinemaInfoService;
import com.woniuxy.woniuticket.pojo.CinemaInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Utopia
 * @title: CinemaInfoServiceImpl
 * @projectName woniuticket
 * @description: TODO
 * @date 2019/5/30 17:51
 */

@Service
public class CinemaInfoServiceImpl implements CinemaInfoService {

    @Resource
    private CinemaInfoDAO cinemaInfoDAO;

    @Override
    public List<CinemaInfo> selectCinemaInfo() {
        return cinemaInfoDAO.selectInfo();
    }

    @Override
    public int updateCinemaInfo(CinemaInfo cinemaInfo) {
        return cinemaInfoDAO.updateByPrimaryKeySelective(cinemaInfo);
    }

    @Override
    public int insertCinemaInfo(CinemaInfo cinemaInfo) {
        return cinemaInfoDAO.insert(cinemaInfo);
    }
}
